PATHMac OS 8 Developer Documentation > Operating System Services > Multiprocessing Services >

Adding Multitasking Capability to Applications Using Multiprocessing Services

   

MPBlockClear

Clears a block of memory.

void MPBlockClear (
                     LogicalAddress address,
                     ByteCount size);
address
A pointer of type LogicalAddress that specifies the starting address of the memory block you want to clear.
size
A value of type ByteCount that specifies the number of bytes you want to clear.
DISCUSSION

As with all shared memory, your application must synchronize access to the memory blocks to avoid data corruption. MPBlockClear ensures the clearing stays within the bounds of the area specified by size , but the calling task can be preempted during the copying process.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)